package com.zhang.entity;

import java.lang.annotation.Target;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhangD
 * @since 2021-07-13
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class ShoppingCar implements Serializable {

    private static final long serialVersionUID = 1L;


    @TableId(type = IdType.AUTO)
    private String id;

    /**
     * 用户id
     */
    private  String count;
    private String userId;

    /**
     * 商品id
     */
    private String productId;

    /**
     * 商品的名称
     */
    private String productName;

    /**
     * 记录创建的时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 记录修改的时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    /**
     * 逻辑删除的标识
     */
    private Boolean isDeleted;


}
